import time


class FileProcess:

    # _dateDic = {
    #     "Jan": 1,
    #     "Feb": 2,
    #     "Mar": 3,
    #     "Apr": 4,
    #     "May": 5,
    #     "Jun": 6,
    #     "Jul": 7,
    #     "Aug": 8,
    #     "Sep": 9,
    #     "Oct": 10,
    #     "Nov": 11,
    #     "Dec": 12
    # }

    def __init__(self, address: str):
        self.file = open(address, encoding="UTF-8", mode="r+")
        self.text = []
        temp = self.file.readlines()
        for i in temp:
            self.text.append(i.strip())

    def __del__(self):
        self.file.close()

    def display(self):
        for i in self.text:
            print(i)


if __name__ == '__main__':
    f1 = FileProcess("D:/desktop/history.txt")
